package org.j5108.entity;

/**
 * Students entity. @author MyEclipse Persistence Tools
 */

public class Students implements java.io.Serializable {

	// Fields

	private Integer studentId;
	private Classes classes;
	private String studentname;
	private Integer studentAge;

	// Constructors

	/** default constructor */
	public Students() {
	}

	/** full constructor */
	public Students(Classes classes, String studentname, Integer studentAge) {
		this.classes = classes;
		this.studentname = studentname;
		this.studentAge = studentAge;
	}

	// Property accessors

	public Integer getStudentId() {
		return this.studentId;
	}

	public void setStudentId(Integer studentId) {
		this.studentId = studentId;
	}

	public Classes getClasses() {
		return this.classes;
	}

	public void setClasses(Classes classes) {
		this.classes = classes;
	}

	public String getStudentname() {
		return this.studentname;
	}

	public void setStudentname(String studentname) {
		this.studentname = studentname;
	}

	public Integer getStudentAge() {
		return this.studentAge;
	}

	public void setStudentAge(Integer studentAge) {
		this.studentAge = studentAge;
	}

	@Override
	public String toString() {
		return "Students [studentId=" + studentId + ", classes=" + classes
				+ ", studentname=" + studentname + ", studentAge=" + studentAge
				+ "]";
	}
   
}